package com.weds.edpf.core.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.weds.core.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.util.Date;
import javax.validation.constraints.Digits;
import javax.validation.constraints.Size;

public class LinkDevchangeLogEntity extends BaseEntity implements Serializable {
    /**
     *
     */
    @ApiModelProperty(required = true, dataType = "int", example = "-1", value = "")
    private Integer xh;

    /**
     *
     */
    @Size(max = 7)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String devSerial;

    /**
     *
     */
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private Long oldAcdep;

    /**
     *
     */
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private Long newAcdep;

    /**
     *
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(required = true, dataType = "string", example = "2020-06-15 09:50:00", value = "")
    private Date sj;

    /**
     *
     */
    @Size(max = 50)
    @ApiModelProperty(required = true, dataType = "string", example = "test", value = "")
    private String glyNo;

    /**
     */
    private static final long serialVersionUID = 1L;

    private String keys;

    /**
     * This method returns the value of the database column link_devchange_log.xh
     *
     * @return the value of link_devchange_log.xh
     */
    public Integer getXh() {
        return xh;
    }

    /**
     */
    public LinkDevchangeLogEntity withXh(Integer xh) {
        this.setXh(xh);
        return this;
    }

    /**
     * This method sets the value of the database column link_devchange_log.xh
     *
     * @param xh the value for link_devchange_log.xh
     */
    public void setXh(Integer xh) {
        this.xh = xh;
    }

    /**
     * This method returns the value of the database column link_devchange_log.dev_serial
     *
     * @return the value of link_devchange_log.dev_serial
     */
    public String getDevSerial() {
        return devSerial;
    }

    /**
     */
    public LinkDevchangeLogEntity withDevSerial(String devSerial) {
        this.setDevSerial(devSerial);
        return this;
    }

    /**
     * This method sets the value of the database column link_devchange_log.dev_serial
     *
     * @param devSerial the value for link_devchange_log.dev_serial
     */
    public void setDevSerial(String devSerial) {
        this.devSerial = devSerial;
    }

    /**
     * This method returns the value of the database column link_devchange_log.old_acdep
     *
     * @return the value of link_devchange_log.old_acdep
     */
    public Long getOldAcdep() {
        return oldAcdep;
    }

    /**
     */
    public LinkDevchangeLogEntity withOldAcdep(Long oldAcdep) {
        this.setOldAcdep(oldAcdep);
        return this;
    }

    /**
     * This method sets the value of the database column link_devchange_log.old_acdep
     *
     * @param oldAcdep the value for link_devchange_log.old_acdep
     */
    public void setOldAcdep(Long oldAcdep) {
        this.oldAcdep = oldAcdep;
    }

    /**
     * This method returns the value of the database column link_devchange_log.new_acdep
     *
     * @return the value of link_devchange_log.new_acdep
     */
    public Long getNewAcdep() {
        return newAcdep;
    }

    /**
     */
    public LinkDevchangeLogEntity withNewAcdep(Long newAcdep) {
        this.setNewAcdep(newAcdep);
        return this;
    }

    /**
     * This method sets the value of the database column link_devchange_log.new_acdep
     *
     * @param newAcdep the value for link_devchange_log.new_acdep
     */
    public void setNewAcdep(Long newAcdep) {
        this.newAcdep = newAcdep;
    }

    /**
     * This method returns the value of the database column link_devchange_log.sj
     *
     * @return the value of link_devchange_log.sj
     */
    public Date getSj() {
        return sj;
    }

    /**
     */
    public LinkDevchangeLogEntity withSj(Date sj) {
        this.setSj(sj);
        return this;
    }

    /**
     * This method sets the value of the database column link_devchange_log.sj
     *
     * @param sj the value for link_devchange_log.sj
     */
    public void setSj(Date sj) {
        this.sj = sj;
    }

    /**
     * This method returns the value of the database column link_devchange_log.gly_no
     *
     * @return the value of link_devchange_log.gly_no
     */
    public String getGlyNo() {
        return glyNo;
    }

    /**
     */
    public LinkDevchangeLogEntity withGlyNo(String glyNo) {
        this.setGlyNo(glyNo);
        return this;
    }

    /**
     * This method sets the value of the database column link_devchange_log.gly_no
     *
     * @param glyNo the value for link_devchange_log.gly_no
     */
    public void setGlyNo(String glyNo) {
        this.glyNo = glyNo;
    }

    public String getKeys() {
        return keys;
    }

    public void setKeys(String keys) {
        this.keys = keys;
    }
}